Optimal. Leaf size=162 \[ \frac {x \left (b c-a e+(b d-a f) x^{n/2}\right )}{a b n \left (a+b x^n\right )}-\frac {(b d (2-n)-a f (2+n)) x^{\frac {2+n}{2}} \, _2F_1\left (1,\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-\frac {b x^n}{a}\right )}{a^2 b n (2+n)}+\frac {(a e-b c (1-n)) x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 162, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {1906, 1432,
251, 371} \begin {gather*} \frac {x (a e-b c (1-n)) \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n}-\frac {x^{\frac {n+2}{2}} (b d (2-n)-a f (n+2)) \, _2F_1\left (1,\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-\frac {b x^n}{a}\right )}{a^2 b n (n+2)}+\frac {x \left (x^{n/2} (b d-a f)-a e+b c\right )}{a b n \left (a+b x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 251
Rule 371
Rule 1432
Rule 1906
Rubi steps
\begin {align*} \int \frac {c+d x^{n/2}+e x^n+f x^{3 n/2}}{\left (a+b x^n\right )^2} \, dx &=\frac {x \left (b c-a e+(b d-a f) x^{n/2}\right )}{a b n \left (a+b x^n\right )}+\frac {\int \frac {2 (a e-b c (1-n))-(b d (2-n)-a f (2+n)) x^{n/2}}{a+b x^n} \, dx}{2 a b n}\\ &=\frac {x \left (b c-a e+(b d-a f) x^{n/2}\right )}{a b n \left (a+b x^n\right )}+\frac {(a e-b c (1-n)) \int \frac {1}{a+b x^n} \, dx}{a b n}-\frac {(b d (2-n)-a f (2+n)) \int \frac {x^{n/2}}{a+b x^n} \, dx}{2 a b n}\\ &=\frac {x \left (b c-a e+(b d-a f) x^{n/2}\right )}{a b n \left (a+b x^n\right )}-\frac {(b d (2-n)-a f (2+n)) x^{\frac {2+n}{2}} \, _2F_1\left (1,\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-\frac {b x^n}{a}\right )}{a^2 b n (2+n)}+\frac {(a e-b c (1-n)) x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.26, size = 151, normalized size = 0.93 \begin {gather*} \frac {x \left ((b d (-2+n)+a f (2+n)) x^{n/2} \left (a+b x^n\right ) \, _2F_1\left (1,\frac {1}{2}+\frac {1}{n};\frac {3}{2}+\frac {1}{n};-\frac {b x^n}{a}\right )+(2+n) \left (a \left (b \left (c+d x^{n/2}\right )-a \left (e+f x^{n/2}\right )\right )+(a e+b c (-1+n)) \left (a+b x^n\right ) \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )\right )\right )}{a^2 b n (2+n) \left (a+b x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {c +d \,x^{\frac {n}{2}}+e \,x^{n}+f \,x^{\frac {3 n}{2}}}{\left (a +b \,x^{n}\right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.38, size = 46, normalized size = 0.28 \begin {gather*} {\rm integral}\left (\frac {f x^{\frac {3}{2} \, n} + d x^{\frac {1}{2} \, n} + e x^{n} + c}{b^{2} x^{2 \, n} + 2 \, a b x^{n} + a^{2}}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {c+e\,x^n+d\,x^{n/2}+f\,x^{\frac {3\,n}{2}}}{{\left (a+b\,x^n\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________